package org.noote.libs.sogle.helper;

import org.noote.libs.sogle.LineMesh;
import org.noote.libs.sogle.Vector3D;

public class LineMesh_Line extends LineMesh {
	public LineMesh_Line(Vector3D vStart, Vector3D vEnd)
	{
		float[] vertices = new float[2*3];
		short[] indices = new short[2];
		
		vertices[0] = vStart.x;
		vertices[1] = vStart.y;
		vertices[2] = vStart.z;
		vertices[3] = vEnd.x;
		vertices[4] = vEnd.y;
		vertices[5] = vEnd.z;
		
		indices[0] = 0;
		indices[1] = 1;
		
		setIndices(indices);
		setVertices(vertices);
	}
}
